package com.xbxkj.commen.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author 张子艺
 * @since 2019-08-19
 */
@TableName("tr_dictionaries")
public class Dictionaries extends Model<Dictionaries> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("parent_id")
    private String parentId;

    @TableField("name")
    private String name;

    @TableField("value")
    private String value;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Dictionaries{" +
            "id=" + id +
            ", parentId=" + parentId +
            ", name=" + name +
            ", value=" + value +
        "}";
    }
}
